<?php
App::import('Sanitize');

class TeefanHelper extends AppHelper
{
  function displayContent($content)
  {
    if (strlen($content) == 0) return $content;
    $content = Sanitize::clean($content, array('encode' => true));
    $content = str_replace("\\r\\n", "<br />", $content);
    $content = str_replace("\\n", "<br />", $content);
    return $content;
  }
}
?>
